﻿using Bmz.IM.Model;
using Bmz.Infrastructure.DesignPatterns;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bmz.IM.Communication
{
    public class ClientEngineContext
    {
        public static IEngine Current
        {
            get
            {
                if(Singleton<IEngine>.Instance==null)
                {
                    Singleton<IEngine>.Instance = new IMEngine();
                }
                return Singleton<IEngine>.Instance;
            }
        }
    }
}
